package org.osmdroid.tileprovider.modules;

import java.io.InputStream;

import org.osmdroid.tileprovider.MapTile;
import org.osmdroid.tileprovider.tilesource.ITileSource;

public interface IArchiveFile {

    /**
     * Get the input stream for the requested tile.
     * 
     * @return the input stream, or null if the archive doesn't contain an entry
     *         for the requested tile
     */
    InputStream getInputStream(ITileSource tileSource, MapTile tile);

    /**
     * 回收资源
     */
    void close();
}
